package com.xuecheng.base.model;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @description: 分页查询结果
 * @author 勾新杰
 * @version 1.0
 * @date 2024/12/15 15:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "分页查询结果")
public class PageResult<T> implements Serializable {
    // 数据列表
    @ApiModelProperty("数据列表")
    private List<T> items;
    //总记录数
    @ApiModelProperty("总记录数")
    private long counts;
    //当前页码
    @ApiModelProperty("当前页码")
    private long page;
    //每页记录数
    @ApiModelProperty("每页记录数")
    private long pageSize;
}
